<?php

class Admin_Form_Forum extends Zend_Dojo_Form
{

    public function init()
    {
        $this->setMethod('post');
        $this->addElement('TextBox', 'catname', array('label'=>'分类名称：'))
             ->addElement('FilteringSelect', 'cat_id', array(
                        'label'       => '所属分类',
                        'storeId'     => 'categoryStore',
                        'storeType'   => 'dojo.data.ItemFileReadStore',
                        'autoComplete'=>true,
                        'storeParams' => array('url' => '/admin/community/list-category'),
                        'dijitParams' => array('searchAttr' => 'catname')))
             ->addElement('TextBox', 'name', array('label'=>'版块名称：'))
             ->addElement('Textarea', 'description', array('label'=>'版块说明：', 'style'=>'width: 400px;'))
             ->addElement('SubmitButton', 'submit', array('label' => '提交','required'   => false, 'ignore' => true));
    }

}

